.class Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;
.super Landroid/content/BroadcastReceiver;
.source "PerformanceAccelerateService.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->c()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 5

    .line 1
    :try_start_0
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object p1

    const-string v0, "android.net.wifi.STATE_CHANGE"

    .line 2
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_6

    .line 3
    sget-boolean p1, Lcom/estrongs/android/pop/j;->v:Z

    if-eqz p1, :cond_0

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/FexApplication;->i()Z

    move-result p1

    if-nez p1, :cond_0

    return-void

    .line 4
    :cond_0
    invoke-static {}, Lcom/estrongs/android/util/f0;->d()Z

    move-result p1

    const-string v0, "bssid"

    .line 5
    invoke-virtual {p2, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    if-eqz p1, :cond_1

    if-nez p2, :cond_1

    .line 6
    invoke-static {}, Lcom/estrongs/android/util/f0;->a()Ljava/lang/String;

    move-result-object p2

    :cond_1
    const/4 v0, 0x0

    if-eqz p1, :cond_3

    if-eqz p2, :cond_3

    .line 7
    iget-object v2, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->d(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p2, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_3

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p1, p2}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;Ljava/lang/String;)Ljava/lang/String;

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->b(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Lcom/estrongs/android/pop/app/service/a;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->b(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Lcom/estrongs/android/pop/app/service/a;

    move-result-object p1

    invoke-interface {p1, v0, v0}, Lcom/estrongs/android/pop/app/service/a;->a(Ljava/util/ArrayList;Ljava/util/Map;)V

    .line 11
    :cond_2
    invoke-static {}, Les/zt;->g()Les/zt;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    .line 12
    invoke-static {p2}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->d(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Les/zt;->a(Ljava/lang/String;)Ljava/util/Map;

    move-result-object p1

    if-eqz p1, :cond_a

    .line 13
    iget-object p2, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p2}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->b(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Lcom/estrongs/android/pop/app/service/a;

    move-result-object p2

    if-eqz p2, :cond_a

    .line 14
    iget-object p2, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p2}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->b(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Lcom/estrongs/android/pop/app/service/a;

    move-result-object p2

    invoke-interface {p2, v0, p1}, Lcom/estrongs/android/pop/app/service/a;->a(Ljava/util/ArrayList;Ljava/util/Map;)V

    goto/16 :goto_0

    :cond_3
    if-eqz p1, :cond_4

    if-nez p2, :cond_a

    .line 15
    :cond_4
    invoke-static {}, Les/zt;->g()Les/zt;

    move-result-object p1

    invoke-virtual {p1}, Les/zt;->f()V

    .line 16
    invoke-static {}, Les/zt;->g()Les/zt;

    move-result-object p1

    invoke-virtual {p1}, Les/zt;->a()V

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->b(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Lcom/estrongs/android/pop/app/service/a;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->b(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Lcom/estrongs/android/pop/app/service/a;

    move-result-object p1

    invoke-interface {p1, v0, v0}, Lcom/estrongs/android/pop/app/service/a;->a(Ljava/util/ArrayList;Ljava/util/Map;)V

    .line 19
    :cond_5
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p1, v0}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;Ljava/lang/String;)Ljava/lang/String;

    .line 20
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p1, v1}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;Z)Z

    goto/16 :goto_0

    :cond_6
    const-string p2, "android.intent.action.SCREEN_ON"

    .line 21
    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_7

    invoke-static {}, Lcom/estrongs/android/pop/utils/q;->b()Z

    move-result p2

    if-eqz p2, :cond_7

    .line 22
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->e(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Z

    move-result p1

    if-eqz p1, :cond_a

    invoke-static {}, Les/zt;->g()Les/zt;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    .line 23
    invoke-static {p2}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Les/zt;->a(Ljava/lang/String;)Ljava/util/Map;

    move-result-object p1

    if-nez p1, :cond_a

    .line 24
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->c(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p2}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->f(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Ljava/util/ArrayList;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;->a(Ljava/util/ArrayList;)V

    .line 25
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->c(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/service/c;->b()V

    .line 26
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {p1, v1}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;Z)Z

    goto :goto_0

    :cond_7
    const-string p2, "android.intent.action.SCREEN_OFF"

    .line 27
    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_a

    invoke-static {}, Lcom/estrongs/android/pop/utils/q;->b()Z

    move-result p1

    if-eqz p1, :cond_a

    .line 28
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/o;->S()J

    move-result-wide p1

    const-wide/16 v0, 0x0

    cmp-long v2, p1, v0

    if-eqz v2, :cond_8

    .line 29
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    sub-long/2addr v0, p1

    const-wide v2, 0x9a7ec800L

    cmp-long v4, v0, v2

    if-gtz v4, :cond_9

    :cond_8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-static {v0, p1, p2}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;J)Z

    move-result p1

    if-eqz p1, :cond_a

    .line 30
    :cond_9
    new-instance p1, Landroid/content/Intent;

    iget-object p2, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    const-class v0, Lcom/estrongs/android/pop/app/ESUsePromptActivity;

    invoke-direct {p1, p2, v0}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 p2, 0x14000000

    .line 31
    invoke-virtual {p1, p2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 32
    iget-object p2, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;->a:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-virtual {p2, p1}, Landroid/app/Service;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 33
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_a
    :goto_0
    return-void
.end method
